﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ANGFLib;

namespace FirstOtsukai
{
    public class HaoPlaceおみせ : HaoPlace
    {
        public override string Id
        {
            get { return FirstOtsykaiConstants.おみせID; }
        }
        public override string HumanReadableName
        {
            get { return "おみせ"; }
        }
        public override Position GetDistance()
        {
            return new Position() { x = 200, y = 0 };
        }
        private bool buy()
        {
            General.StandardBuy(FirstOtsykaiConstants.ショップID,(i,o)=>i.Price);
            return true;
        }
        private bool sell()
        {
            General.StandardSell(FirstOtsykaiConstants.ショップID, (i, o) => i.Price/2);
            return true;
        }
        
        public override bool ConstructMenu(List<SimpleMenuItem> list)
        {
            list.Add(new SimpleMenuItem("買い物", buy));
            list.Add(new SimpleMenuItem("売り物", sell));
            return true;
        }
    }
}
